package comday07.itheima01;

public class Demo02 {
    public static void main(String[] args) {

        //创建对象
        Student s = new Student();

        //赋值
        s.name = "马冬梅";
        s.sex = "女";
        s.age = 32;

        System.out.println("ta的姓名是" + s.name + "ta的年龄是" + s.age);

        //调用方法
        s.eat();
        s.study();
    }
}
